<{Tinclude "commom/admin_header"}>

<div id="login-page">
	  	<div class="container">
	  	
		      <form class="form-login" action="<{echo Common::RewriteUrl($jp_arg["c"],$jp_arg["a"]);}>"  method="post">
		        <h2 class="form-login-heading">租户登录</h2>
		        <div class="login-wrap">
		            <input type="text" class="form-control" placeholder="用户名" name="user_name" autofocus>
		            <br>
                            <input type="password" name="password" class="form-control" placeholder="密码">
		            <label class="checkbox">
		                <span class="pull-right">
		                    <a data-toggle="modal" href="login.html#myModal"> 忘记密码?</a>
		
		                </span>
		            </label>
		            <button class="btn btn-theme btn-block" name="submit"  type="submit"><i class="fa fa-lock"></i> 登录</button>
		         
                            <hr>
                            
                            <div class="login-social-link centered">
		            <p>使用快捷登录</p>
                            <button class="btn btn-primary" type="button" id="qqlogin"><i class="fa fa-qq"></i> QQ账号登陆</button>
		                <button class="btn btn-twitter" type="button" id="sinalogin"><i class="fa fa-weibo"></i> 新浪账号登陆</button>
		            </div>
                            
                           <div class="registration">
		                还没有账号?<br>
		                <a  data-toggle="modal" href="login.html#addtenant">
		                   创建新账号
		                </a>
		            </div>
		
		        </div>
		
		          <!-- Modal -->
		          <div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" id="myModal" class="modal fade">
		              <div class="modal-dialog">
		                  <div class="modal-content">
		                      <div class="modal-header">
		                          <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
		                          <h4 class="modal-title">Forgot Password ?</h4>
		                      </div>
		                      <div class="modal-body">
		                          <p>Enter your e-mail address below to reset your password.</p>
		                          <input type="text" name="email" placeholder="Email" autocomplete="off" class="form-control placeholder-no-fix">
		
		                      </div>
		                      <div class="modal-footer">
		                          <button data-dismiss="modal" class="btn btn-default" type="button">Cancel</button>
		                          <button class="btn btn-theme" type="button">Submit</button>
		                      </div>
		                  </div>
		              </div>
		          </div>
		          <!-- modal -->
                          
                          
                          
                          
                          
		
		      </form>	  
                    
                    
                    <!-- 创建新租户Modal -->
		          <div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" id="addtenant" class="modal fade">
		              <div class="modal-dialog">
		                  <div class="modal-content">
                                      <form method="post" enctype="multipart/form-data" action="<{echo Common::RewriteUrl($jp_arg["c"],"register");}>">
		                      <div class="modal-header">
		                          <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
		                          <h4 class="modal-title">创建新租户</h4>
		                      </div>
		                      <div class="modal-body">
		                          <div class="form-group input-group col-md-12">
   
                <span class="input-group-addon" id="basic-addon1">姓名:</span>
                <input type="text" name="base_name" class="form-control" placeholder="请填写姓名...." aria-describedby="basic-addon1">

           </div>
                                          
                                          <div class="form-group input-group col-md-12">
   
                <span class="input-group-addon" id="basic-addon1">登录名称:</span>
                <input type="text" name="user_name" class="form-control" placeholder="请填写登录名称...." aria-describedby="basic-addon1">

           </div>
                                          
                                          <div class="form-group input-group col-md-12">
   
                <span class="input-group-addon" id="basic-addon1">密码</span>
                <input type="password" name="password" class="form-control" placeholder="请填写密码...." aria-describedby="basic-addon1">

           </div>
                               
                               <div class="form-group input-group col-md-12">
   
                <span class="input-group-addon" id="basic-addon1">确认密码</span>
                <input type="password" name="confirmpassword" class="form-control" placeholder="请填写确认密码...." aria-describedby="basic-addon1">

           </div>
                          
          <div class="form-group input-group col-md-12">
   
                <span class="input-group-addon" id="basic-addon1">邮箱:</span>
                <input type="text" name="email" class="form-control" placeholder="请填写邮箱...." aria-describedby="basic-addon1">

           </div>
                               
                               <div class="form-group input-group col-md-12 col-xs-12 minheight">
               <label for="exampleInputFile">上传头像</label>
               <input type="file" id="exampleInputFile" name="image" />
           </div>
                               
                                 <div class="form-group input-group col-md-12">
   
                <span class="input-group-addon" id="basic-addon2">身份证:</span>
                <input type="text" name="id_card"  class="form-control" placeholder="请填写身份证" aria-describedby="basic-addon2">
           </div>
                                 
                               <div class="form-group input-group col-md-12">
   
                <span class="input-group-addon" id="basic-addon6">手机号码:</span>
                <input type="text" name="mobile_phone"  class="form-control" placeholder="请填写手机号码" aria-describedby="basic-addon6">
           </div>
                               
                               
                                
                               
                               
                                 <div class="form-group input-group col-md-12">
   
                <span class="input-group-addon" id="basic-addon3">年龄:</span>
                <input type="text" name="age"  class="form-control" placeholder="请填写年龄" aria-describedby="basic-addon3">
           </div>
                           
                               <div class="form-group input-group col-md-12">
   
                <div class="radio">
  <label>
    <input type="radio" name="sex"  value="1" checked>   男

  </label>
                      <label>
    <input type="radio" name="sex"  value="2">女

  </label>
</div>



           </div>
                               
                        <div class="form-group input-group col-md-12">
   
                <span class="input-group-addon" id="basic-addon4">工作地点:</span>
                <input type="text" name="work_address"  class="form-control" placeholder="请填写工作地点" aria-describedby="basic-addon4">
           </div>      
		
		                      </div>
		                      <div class="modal-footer">
		                          <button data-dismiss="modal" class="btn btn-default" type="button">取消</button>
                                          <button class="btn btn-theme" name="submit" type="submit">提交</button>
		                      </div>
                                      </form>
		                  </div>
		              </div>
		          </div>
		          <!-- modal -->
	  	
	  	</div>
	  </div>



    <!--BACKSTRETCH-->
    <!-- You can use an image of whatever size. This script will stretch to fit in any screen size.-->
    <script type="text/javascript" src="<?php echo JS_PATH;?>jquery.backstretch.min.js"></script>
    <script>
        $.backstretch("<?php echo TEMP_PATH;?>img/login-bg.jpg", {speed: 500});
        $(document).ready(function(){
            var arg=window.location.href.slice(window.location.href.indexOf('?') + 1).split("#");
            if(arg[1]){
                if(arg[1]=="register"){
                    $('#addtenant').modal('show');
                }
            }
            $("#qqlogin").click(function(){
                var iWidth=480; 
                var iHeight=620;
                var iTop = (window.screen.availHeight-30-iHeight)/2;
                var iLeft = (window.screen.availWidth-10-iWidth)/2; 
                var A=window.open("<{echo Common::RewriteUrl("QQlogin","login");}>","TencentLogin","width="+iWidth+",height="+iHeight+",top="+iTop+",left="+iLeft+",menubar=0,scrollbars=1,resizable=1,status=1,titlebar=0,toolbar=0,location=1");
            });
            $("#sinalogin").click(function(){
                var iWidth=480; 
                var iHeight=620;
                var iTop = (window.screen.availHeight-30-iHeight)/2;
                var iLeft = (window.screen.availWidth-10-iWidth)/2; 
                var A=window.open("<{echo Common::RewriteUrl("Sinalogin","login");}>","TencentLogin","width="+iWidth+",height="+iHeight+",top="+iTop+",left="+iLeft+",menubar=0,scrollbars=1,resizable=1,status=1,titlebar=0,toolbar=0,location=1");
            });
        });
    </script>

<{Tinclude"commom/admin_footer"}>